<!-- @reference Laptop Shop Tutorial   (Whitney Clare x11106131) -->

<!DOCTYPE html>
<html>
<head>
  <title>IrishGiftsOnline</title>
  <%= stylesheet_link_tag    "application" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>

<div id="columns">
  <div id="side">
    <div id="cart">
	<%=render @cart%>
    </div>
  </div>
</div>
	
| <%= link_to "Product Catalogue", products_path %> |
 <%= link_to "Leave Site", :controller => "welcome", :action => "thank_you" %> 
| <%= link_to "Register", :controller => "welcome", :action => "register" %> |
	<%= link_to "Home", :controller => "welcome", :action => "home" %> |






<div id='header'>
  <% if logged_in? %>
        <%= current_user.email %> |
        <%= link_to 'Logout', logout_path %> |
      <%= link_to "Your Profile", "users/"+current_user.id.to_s %> |
      <%if current_user.admin %>
            <%= link_to "Create User", new_user_path %> |

          <%end%>
    <% else %>
        <%= link_to "Login", login_path %> |
    <% end %>
</div>

<%= yield %>

</body>
</html>
